package com.wwinsoft.framework.entity;

import javax.persistence.MappedSuperclass;
import javax.persistence.Version;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@MappedSuperclass
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public abstract class BaseEntity {

    protected Long revision;

    public Long getRevision() {
        return revision;
    }

    @Version
    public void setRevision(Long revision) {
        this.revision = revision;
    }
}